solve me first hackerank solution